package com.opengate.demo.api.config;

import com.opengate.base.knife4j.AbStractDocConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import springfox.documentation.oas.annotations.EnableOpenApi;

/**
 * @author 曳戈泰尔
 * @version 1.0
 * @description 文档配置类
 *     <p>激活dev和test环境
 * @date 2023/4/27 8:59 PM
 */
@Configuration
@EnableOpenApi
@Profile({"dev", "test"})
public class DocConfig extends AbStractDocConfig {

    @Override
    protected String basePackage() {
        return "com.opengate.demo.api.biz";
    }

    @Override
    protected String getTitle() {
        return "opengate-app接口";
    }
}
